services.netbird.tunnels.<name>.environment
Environment for the netbird service, used to pass configuration options.
- Type
attribute set of string- Default
{ NB_STATE_DIR = client.dir.state; NB_CONFIG = "${client.dir.state}/config.json"; NB_DAEMON_ADDR = "unix://${client.dir.runtime}/sock"; NB_INTERFACE_NAME = client.interface; NB_LOG_FILE = mkOptionDefault "console"; NB_LOG_LEVEL = client.logLevel; NB_SERVICE = client.service.name; NB_WIREGUARD_PORT = toString client.port; } // optionalAttrs (client.dns-resolver.address != null) { NB_DNS_RESOLVER_ADDRESS = "${client.dns-resolver.address}:${toString client.dns-resolver.port}"; }- Declared
- <nixpkgs/nixos/modules/services/networking/netbird.nix>